//监听窗口的改变
			$(window).resize(function () {
				if($(window).width()<screen.width*0.6){
					$(".content-one").css("width","50%");
				}else{
					$(".content-one").css("width","25%");
				}
			/*	$(".content-second-row .panel-header").css("width",$(window).width()*0.5);
				$(".content-second-row .panel-body").css("width",$(window).width()*0.5);
				$(".content-second-row").css("width",$(window).width());
				$(".content-second-row .portal-column-left").css("width",$(window).width()*0.5);				
				$(".content-second-row .content-second-right").css("width",$(window).width()*0.5);*/
			})
//图表的最大化和最小化
$(function(){		
			$(".content-second-row").on("click",".btn-min",function(){
				var father=$(this).parent().parent().next();
				if(father.hasClass("show")){
					father.slideDown();
					father.removeClass("show");
					$("<i class='iconfont icon-minimize'></i>").replaceAll($(this).children()); 
				}else{
					father.slideUp();	
					father.addClass("show");		
					$("<i class='iconfont icon-quanpingzuidahua'></i>").replaceAll($(this).children());  			
				}								
			})				
			
			$(".content-second-row").on("click",".btn-show",function(e){
				var show=$(this).next();			
				if(show.css('display')=='none'){
					show.css("display","block");					
				}else{
					show.css("display","none");
				}
				$(document).one("click",function(){
					$(".left-icon-menu").hide();								
				});
				e.stopPropagation();				
			});	
			
			$(".content-second-row").on("click",".btn-close",function(){
				$(this).parent().parent().parent().slideUp();
			})
			
			$(".left-icon-menu").on("click",function(e){
				e.stopPropagation();	
			})			
		$('.content-second-row').portal({
				border:false,
				fit:true
			});
			var a=$("<div class='right-icon'></div>");
			var b1=$("<div style='display: inline-block;'></div>");
			var b2=$("<button class='btn-show'><i class='iconfont icon-gengduoa'></i></button>");
			var b3=$("<ul class='left-icon-menu'><li><a class='hello'>hello</a></li><li><a class='hello'>hello</a></li></ul>");
			var c=$("<button class='btn-min'><i class='iconfont icon-minimize'></i></button>");
			var d=$("<button class='btn-close'><i class='iconfont icon-guanbi'></i></button>");
			b1.append(b2);
			b1.append(b3);
			a.append(b1);
			a.append(c);
			a.append(d);
			$(".content-second-row .panel-header").append(a);
			/*$(".content-second-row .panel-header").append($(".box-header").html());*/
	
		$(".content-second-row").on("click",'.calendar-day',function(){
			console.log($(this).attr('id'));
		})
		
	});
			